class JxBrowserUtil {
  constructor() {
    console.log("JxBrowserUtil INIT");
  }

  // proxyFunc(window: any, func: any, funcName: string) {
  //   window.java[funcName] = func;
  // }

  request(window: any, requestStr: string) {
    (window as any).java.request(requestStr);
  }
  openDataset(window: any, targetUid: string) {
    window.java.openDataSet(targetUid);
  }
  executePluginHandler(window: any, className: string, targetUid: string) {
    const requestId = Date.now().toString();

    (window as any).java.executePluginHandler(requestId, className, targetUid);
  }
}

export default JxBrowserUtil;
